hi, beginner issue with socat [closed]

Posted by ams on Server Fault See other posts from Server Fault or by ams
Published on 2012-11-16T21:26:16Z Indexed on 2012/11/16 23:02 UTC
Read the original article Hit count: 197

Filed under:

the main question is how to begin sending request to server with some data(send request with number) and get data from server??


and second question is how can i solve this simple question (author said) ? In this part, you should write a simple Shell script which receives URL of a website by sending your student number to a server and after creating and sending HTTP request for this URL, receives the desired
content. Finally the content should be saved in an HTML file. Steps 1. Connect to port 4000 of the server and send the massage which includes your student number (e.g. 89207704) to the server.

  1. Receive the URL in the form of http://www.example.com.

  2. Create the HTTP request and send it to the website's server.

  3. Receive the content of the URL from the website.

  4. Save the content in the HTML file. what i can do? how i begin? thank u all the topology that exercise is speaking about is here

Topology is here

Is there any easy way to do this?

© Server Fault or respective owner

Related posts about socat